home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Docs / Sources / Editions.r next >
Encoding:
Text File  |  1996-04-03  |  4.4 KB  |  218 lines  |  [TEXT/MPS ]

  1. /*
  2.     Editions.r
  3.     MacApp® Edition Manager Resources
  4.     Copyright © 1990-96 by Apple Computer, Inc. All rights reserved.
  5.     
  6.     Usage
  7.     =====
  8.     If your application supports the Edition Manager, then include the following line in your
  9.     application's ".r" file:
  10.     
  11. include "Editions.rsrc" not 'ckid';                    // Grab the required Edition Manager resources
  12.  
  13.     If your application uses the default Edition Manager Edit menu supplied by MacApp, then 
  14.     include the following line in your application's ".r" file:
  15.     
  16. include "Defaults.rsrc" 'CMNU' (mEditionMgrEdit);    // Grab the default Edition Manager Edit menu
  17.  
  18.     
  19.     Open Issues
  20.     ===========
  21.     There are 4 buzz strings in the kIDBuzzString 'STR#' resource for Edition Mgr support,
  22.     these should probably be broken out of the default buzz string resource, but where should
  23.     they go?
  24.     
  25.     The Edition Mgr default Edit menu is in Defaults.r and should probably remain there (rather
  26.     than moving it here) since it's optional, whereas the resources in this file are mandatory.
  27. */
  28.  
  29. /* • Auto-Include the requirements for this source */
  30. #ifndef __TYPES.R__
  31. #include "Types.r"
  32. #endif
  33.  
  34. #ifndef __MacAppTypes__
  35. #include "MacAppTypes.r"
  36. #endif
  37.  
  38. #ifndef __ViewTypes__
  39. #include "ViewTypes.r"
  40. #endif
  41.  
  42. // Edition Manager Apple Event support
  43. resource 'aedt' (kAEEditionsDispatchTable)
  44. {
  45.     {
  46.     sectionEventMsgClass, sectionReadMsgID, cSectionRead;
  47.     sectionEventMsgClass, sectionWriteMsgID, cSectionWrite;
  48.     sectionEventMsgClass, sectionScrollMsgID, cSectionScroll;
  49.     sectionEventMsgClass, sectionCancelMsgID, cSectionCancel;
  50.     }
  51. };
  52.  
  53. /* Used when closing a document in which the user has created a publisher but hasn't
  54.    modified any of the document's DATA */
  55.  
  56. resource 'DITL' (phNewPublisherAlert,
  57. #if qNames
  58.     "phNewPublisherAlert",
  59. #endif
  60.     purgeable) {
  61.     {    /* array DITLarray: 6 elements */
  62.         /* [1] */
  63.         {119, 288, 139, 348},
  64.         Button {
  65.             enabled,
  66.             "Save"
  67.         },
  68.         /* [2] */
  69.         {119, 215, 139, 275},
  70.         Button {
  71.             enabled,
  72.             "Cancel"
  73.         },
  74.         /* [3] */
  75.         {119, 72, 139, 156},
  76.         Button {
  77.             enabled,
  78.             "Don't Save"
  79.         },
  80.         /* [4] */
  81.         {10, 75, 106, 348},
  82.         StaticText {
  83.             disabled,
  84.             "This document contains new Publishers. You must save this document to keep them."
  85.             "\n\n"
  86.             "Save '^0' before ^1?"
  87.         },
  88.         /* [6] */
  89.         {10, 20, 42, 52},
  90.         Icon {
  91.             disabled,
  92.             cautionIcon
  93.         }
  94.     }
  95. };
  96.  
  97. /* Used when a document has multiple publishers to the same edition. */
  98.  
  99. resource 'DITL' (phMultPublisherWrn,
  100. #if qNames
  101.     "phMultPublisherWrn",
  102. #endif
  103.     purgeable) {
  104.     {    /* array DITLarray: 4 elements */
  105.         /* [1] */
  106.         {135, 288, 155, 348},
  107.         Button {
  108.             enabled,
  109.             "OK"
  110.         },
  111.         /* [2] */
  112.         {10, 75, 122, 348},
  113.         StaticText {
  114.             disabled,
  115.             "There is another Publisher open to the Edition '^0.'"
  116.             "\n\n"
  117.             "If there is more than one Publisher to an Edition, the Edition's contents aren't predictable."
  118.         },
  119.         /* [4] */
  120.         {10, 20, 42, 52},
  121.         Icon {
  122.             disabled,
  123.             cautionIcon
  124.         }
  125.     }
  126. };
  127.  
  128. /* Used when a document tries to save multiple publishers to the same edition. */
  129.  
  130. resource 'DITL' (phSavingMultPublisherWrn,
  131. #if qNames
  132.     "phSavingMultPublisherWrn",
  133. #endif
  134.     purgeable) {
  135.     {    /* array DITLarray: 4 elements */
  136.         /* [1] */
  137.         {135, 288, 155, 348},
  138.         Button {
  139.             enabled,
  140.             "OK"
  141.         },
  142.         /* [2] */
  143.         {10, 75, 122, 348},
  144.         StaticText {
  145.             disabled,
  146.             "'^1' contains two Publishers to the Edition '^0.'"
  147.             "\n\n"
  148.             "If there is more than one Publisher to an Edition, the Edition's contents aren't predictable."
  149.         },
  150.         /* [4] */
  151.         {10, 20, 42, 52},
  152.         Icon {
  153.             disabled,
  154.             cautionIcon
  155.         }
  156.     }
  157. };
  158.  
  159. resource 'ALRT' (phNewPublisherAlert,
  160. #if qNames
  161.     "phNewPublisherAlert",
  162. #endif
  163.     purgeable) {
  164.     {86, 60, 235, 418},
  165.     phNewPublisherAlert,
  166.     {    /* array: 4 elements */
  167.         /* [1] */
  168.         OK, visible, silent,
  169.         /* [2] */
  170.         OK, visible, silent,
  171.         /* [3] */
  172.         OK, visible, silent,
  173.         /* [4] */
  174.         OK, visible, silent
  175.     },
  176.     alertPositionMainScreen
  177. };
  178.  
  179. resource 'ALRT' (phMultPublisherWrn,
  180. #if qNames
  181.     "phMultPublisherWrn",
  182. #endif
  183.     purgeable) {
  184.     {100, 110, 265, 468},
  185.     phMultPublisherWrn,
  186.     {    /* array: 4 elements */
  187.         /* [1] */
  188.         OK, visible, silent,
  189.         /* [2] */
  190.         OK, visible, silent,
  191.         /* [3] */
  192.         OK, visible, silent,
  193.         /* [4] */
  194.         OK, visible, silent
  195.     },
  196.     alertPositionMainScreen
  197. };
  198.  
  199. resource 'ALRT' (phSavingMultPublisherWrn,
  200. #if qNames
  201.     "phSavingMultPublisherWrn",
  202. #endif
  203.     purgeable) {
  204.     {100, 110, 265, 468},
  205.     phSavingMultPublisherWrn,
  206.     {    /* array: 4 elements */
  207.         /* [1] */
  208.         OK, visible, silent,
  209.         /* [2] */
  210.         OK, visible, silent,
  211.         /* [3] */
  212.         OK, visible, silent,
  213.         /* [4] */
  214.         OK, visible, silent
  215.     },
  216.     alertPositionMainScreen
  217. };
  218.